package com.ningxun.pagent.bus.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ningxun.pagent.bus.domain.BusPolicyContent;
import com.ningxun.pagent.common.utils.bean.BeanUtils;

import java.util.Date;

public class WechatLatestPolicyVo {
    /** 主键id */
    private Long policyId;

    /** 政策标题 */
    private String title;

    /** 政策内容 富文本 */
    private String content;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    public void setPolicyId(Long policyId)
    {
        this.policyId = policyId;
    }

    public Long getPolicyId()
    {
        return policyId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setCreateTime(Date expirationTime)
    {
        this.createTime = expirationTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public static WechatLatestPolicyVo convertToWechatLatestPolicyVo(BusPolicyContent item) {
        WechatLatestPolicyVo vo = new WechatLatestPolicyVo();
        BeanUtils.copyBeanProp(vo, item);
        return vo;
    }
}
